package com.paziy.jan.graphics.figures;

import com.paziy.jan.graphics.Color;

public class Circle extends Point {

    private static final int DEFAULT_RADIUS = 1;

    private int radius = DEFAULT_RADIUS;

    public Circle() {
        super();
    }

    public Circle(int x, int y) {
        super(x, y);
    }

    public Circle(int x, int y, int radius) {
        this(x, y);
        setRadius(radius);
    }

    public Circle (int x, int y, int radius, Color color) {
        super(x, y, color);
        setRadius(radius);
    }

    public int getRadius() {
        return radius;
    }

    public void setRadius(int newRadius) {
        radius = newRadius;
    }

    @Override
    public void draw() {
        System.out.println(toString());
    }

    @Override
    public String toString() {
        return "Circle: x: " + getX() + "; y: " + getY() + "; Radius: " + radius + "; " + getColor() + ";";
    }
}
